package com.example.chatweb.service;

import com.example.chatweb.entity.History;
import org.springframework.beans.factory.annotation.Autowired;

import javax.annotation.Resource;
import java.util.List;

public interface HistoryService {

    public void addHistory(History history);

    public List<History> findHistoriesByTopic(String topic,Integer userid);

    public List<String> findAllTopics(Integer userid);
}

//    void insertHistory(History history);

//    void deleteHistory(long id);
//
//    History findHistoryById(Long id);
//
//    List<History> findAllHistories();
//}
